<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<h2>欢迎来到首页,你好:<sec:authentication property="name"/>!</h2>
	${sessionScope.user.SPRING_SECURITY_LAST_USERNAME}
	<%=session.getAttribute("SPRING_SECURITY_LAST_USERNAME") %>
	<sec:authorize url="/admin.jsp">
		<a href="admin.jsp">进入admin界面</a>
	</sec:authorize>
	<a href="j_spring_security_logout">退出系统</a>
</body>
</html>
